import 'dart:convert';

List<CategoryForTextType> categoryForTextTypeFromJson(String str) => List<CategoryForTextType>.from(json.decode(str).map((x) => CategoryForTextType.fromJson(x)));

String categoryForTextTypeToJson(List<CategoryForTextType> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class CategoryForTextType {
    CategoryForTextType({
        this.id,
        this.mainCategory,
    });

    String? id;
    String? mainCategory;

    factory CategoryForTextType.fromJson(Map<String, dynamic> json) => CategoryForTextType(
        id: json["id"],
        mainCategory: json["mainCategory"],
    );

    Map<String, dynamic> toJson() => {
        "id": id,
        "mainCategory": mainCategory,
    };
}
